﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace Tron.Graphics
{
    public class TextGraphics
    {
        public SpriteBatch SpriteBatch { get; private set; }
        public SpriteFont SpriteFont {get; private set;}
        public Vector2 FontPosition {get; private set;}
        public String Text { get; set; }
        public Color Color {get; set;}

        public TextGraphics(SpriteBatch spriteBatch, SpriteFont spriteFont, Vector2 fontPosition)
        {
            SpriteBatch = spriteBatch;
            SpriteFont = spriteFont;
            FontPosition = fontPosition;
            Text = String.Empty;
            Color = Color.White;
        }

        public void Draw()
        {
            SpriteBatch.Begin();
            SpriteBatch.DrawString(SpriteFont, Text, FontPosition, Color);
            SpriteBatch.End();
        }
    }
}
